]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dash: expand and center align DashItemContainer
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 13 Sep 2018 20:37:54 +0000 (17:37 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 9 Oct 2018 01:43:13 +0000 (22:43 -0300)
This is necessary to keep the small actor that shows up
during drag motion center aligned.

js/ui/dash.js

index 65a37b1271f55b9b7dffbd19e8a1ebc8359f4443..60d0309412eec7ec4459d3f5b287472aa37433e3 100644 (file)
@@ -39,7 +39,9 @@ var DashItemContainer = new Lang.Class({
 
     _init() {
         this.parent({ style_class: 'dash-item-container',
-                      pivot_point: new Clutter.Point({ x: .5, y: .5 }) });
+                      pivot_point: new Clutter.Point({ x: .5, y: .5 }),
+                      x_expand: true,
+                      x_align: Clutter.ActorAlign.CENTER });
 
         this._labelText = "";
         this.label = new St.Label({ style_class: 'dash-label'});